package com.bub.pay.core.base;

import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface IBaseManager<T> {

    int insert(T entity);

    int insertSelective(T entity);

    int updateByPrimary(T entity);

    T getById(Long id);

    T getByPrimaryKey(Object var1);

    T getOne(T entity);

    int getCount(T entity);

    List<T> getList(T entity);

    List<T> getAll();

    Integer getCountByExample(Example query);

    List<T> getByExample(Example example);

    T getOneByExample(Example example);

    int updateByPrimaryKeySelective(T entity);

    int updateByExampleSelective(T entity,Object o);
}
